var t = getApp();

Page({
    data: {
        isProve: !1,
        pageMode: null,
        loading: !0,
        showCode: !1,
        finish: !1,
        status: 0,
        field: {},
        code_url: "",
        dataId: "",
        timer: null,
        thumb: null,
        description: null
    },
    onLoad: function(t) {
        this.data.id = this.options.id, this.getData();
    },
    getData: function() {
        var o = this;
        if (this.options.id) {
            var a = t.getNetAddresss("plugin.diy-form-prove.frontend.controllers.prove.dataLogDetail");
            t._postNetWork({
                url: a,
                data: {
                    id: this.data.id
                },
                success: function(t) {
                    var a = t.data;
                    1 == a.result ? o.setData({
                        thumb: a.data.form_data.thumb || null,
                        description: a.data.form_data.description || null,
                        loading: !1,
                        field: a.data.form_data.fields,
                        status: 1
                    }) : wx.showToast({
                        icon: "none",
                        title: a.msg,
                        duration: 1e3
                    });
                },
                fail: function(t) {
                    console.log(t);
                }
            });
        }
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            title: this.data.thumb,
            imageUrl: this.data.description
        };
    }
});